package cn.ainit.sys.pages.config;


import java.util.List;

import cn.ainit.sys.menu.SysFunctions;
import cn.ainit.sys.pages.config.entity.ConfigFunctions;
import cn.ainit.sys.pages.config.entity.ConfigObject;
import cn.ainit.sys.query.entity.QueryColumn;

public interface PagesConfigService {
	/**
	 * 根据configId得到相应的configObject实体类
	 * @param configId
	 * @return
	 * @throws Exception
	 */
	public ConfigObject getOneConfigObject(String configId) throws Exception;
	/**
	 * 根据funsId得到相应的从覅改Functions实体类
	 * @param funcsId
	 * @return
	 * @throws Exception
	 */
	public ConfigFunctions getOneConfigFunctions(String funcsId) throws Exception;
	/**
	 * 查询queryColumn   fristFlag为T的
	 * @param dsId
	 * @return
	 * @throws Exception
	 */
	List<QueryColumn> queryOneColumns(String dsId) throws Exception;
	/**
	 * 查询queryColumn   fristFlag不为T的
	 * @param dsId
	 * @return
	 * @throws Exception
	 */
	List<QueryColumn> queryTwoColumns(String dsId) throws Exception;
	/**
	 * 添加ConfigObject
	 * @param configObject
	 * @return
	 * @throws Exception
	 */
	boolean saveConfigObject(ConfigObject configObject) throws Exception;
	/**
	 * 添加sysFunctions (菜单)
	 * @param sysFunctions
	 * @return
	 * @throws Exception
	 */
	boolean saveFunc(SysFunctions sysFunctions)  throws Exception;
	/**
	 * 根据superFuncId 得到本条数据 
	 * @param superId
	 * @return
	 * @throws Exception
	 */
	SysFunctions getOneFunction(String superId) throws Exception;
}
